# 水果的单价
price = {
    "Apple"   : 5.98,
    "Orange": 3.98,
    "Banana" : 3.49
}

# 购买的个数
count = { "Apple" : 8,  "Orange": 12, "Banana": 2 }

# 买这三种水果,一共花了多少钱？
fruits = [ "Apple", "Orange", "Banana"]

# 一共有几种水果，共几个？
total_kind = 0
total_count = 0
for x in fruits:
    total_kind += 1
    total_count += count[x]
    print(f"{x}买了{count[x]}个")
print(f"一共有{total_kind}种水果, 一共{total_count}个")

# 作业：什么水果买的最多？